﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Com.LongER.Framework.Utils
{
    /// <summary>
    /// ログイン情報
    /// </summary>
    public class LoginInfo
    {
      public  const String NBSP = "&nbsp;";

        /// <summary>
        /// ログイン情報のクリア
        /// </summary>
        public void Clear()
        {

            _USERID = null;
            _USERID_HANZI = null;
            _STAFF_ID = null;
            _STAFF_HANZI = null;
            _BUMEN = null;
            _ZHIWEI = null;
            _PWD = null;
        }

        private String _USERID;
        private String _USERID_HANZI;
        private String _STAFF_ID;
        private String _STAFF_HANZI;
        private String _BUMEN;
        private String _ZHIWEI;
        private String _PWD;

        /// <summary>
        /// 用户ＩＤ
        /// </summary>
        public String USERID { 
            get { return _USERID == null ? NBSP : _USERID; }
            set{_USERID  =value;} 
         }

        /// <summary>
        /// 用户名_汉字
        /// </summary>
        public String USERID_HANZI {
            get { return _USERID_HANZI == null ? NBSP : _USERID_HANZI; }
            set { _USERID_HANZI = value; } 
        }

        /// <summary>
        /// 员工ＩＤ
        /// </summary>
        public String STAFF_ID { 
            get { return _STAFF_ID == null ? NBSP : _STAFF_ID; } 
            set { _STAFF_ID = value; } 
        }

        /// <summary>
        /// 
        /// </summary>
        public String STAFF_HANZI { 
            get { return _STAFF_HANZI == null ? NBSP : _STAFF_HANZI; } 
            set { _STAFF_HANZI = value; } 
        }

        /// <summary>
        /// 终端ＩＤ
        /// </summary>
        public String BUMEN { 
            get { return _BUMEN == null ? NBSP : _BUMEN; } 
            set { _BUMEN = value; } 
        }

        /// <summary>
        /// 系统权限
        /// </summary>
        public String ZHIWEI { 
            get { return _ZHIWEI == null ? NBSP : _ZHIWEI; } 
            set { _ZHIWEI = value; } 
        }

        /// <summary>
        /// 密码
        /// </summary>
        public String PWD
        {
            get { return _PWD == null ? NBSP : _PWD; }
            set { _PWD = value; }
        }
    }
}
